package com.budwk.app.sys.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import com.budwk.starter.database.model.BaseModel;
import com.budwk.starter.excel.annotation.Excel;
import com.budwk.starter.excel.annotation.Excels;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;
import org.nutz.json.JsonField;

import java.io.Serializable;
import java.util.List;

/**
 * 系统用户表
 *
 * @author wizzer@qq.com
 */
@Data

@Table("shequ.sys_user")
public class ShequUser  implements Serializable {

    @Name
    private String id;

    @Column
    @Comment("登录用户名")
    @ApiModelProperty(description = "登录用户名", required = true, check = true)
    @ColDefine(type = ColType.VARCHAR, width = 120)
    private String loginname;


    @Column
    @Comment("用户姓名")
    @ApiModelProperty(description = "姓名昵称", required = true, check = true)
    @ColDefine(type = ColType.VARCHAR, width = 100)
    @Excel(name = "用户姓名")
    private String username;



    @Column
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @ApiModelProperty(description = "公司ID")
    private String companyId;

    @Column
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @ApiModelProperty(description = "单位ID")
    private String unitId;

    @Column
    @ColDefine(type = ColType.VARCHAR, width = 100)
    @ApiModelProperty(description = "单位PATH")
    private String unitPath;

    @Column
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @ApiModelProperty(description = "职务ID")
    private String postId;

    @Excel(name = "单位名称", type = Excel.Type.IMPORT)
    private String importUnitName;


    @Column
    @Comment("省")
    @ApiModelProperty(description = "省")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String province;

    @Column
    @Comment("市")
    @ApiModelProperty(description = "市")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String city;

    @Column
    @Comment("区")
    @ApiModelProperty(description = "区")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String district;

    @Column
    @Comment("街道")
    @ApiModelProperty(description = "街道")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String county;

    @Column
    @Comment("社区")
    @ApiModelProperty(description = "社区")
    @ColDefine(type = ColType.VARCHAR, width = 500)
    private String community;

    @Column("unit_name")
    @Comment("单位")
    @ApiModelProperty(description = "单位")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String unitName;



}
